<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Shop-app购物系统</title>

    <link rel="stylesheet" href="./libs/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="./css/index.css">
    <script src="./libs/jquery-3.4.1.min.js"></script>
    <script src="./libs/bootstrap/js/bootstrap.min.js"></script>
    <script src="./js/utils.js"></script>
</head>

<body>

    <nav class="navbar navbar-default  navbar-inverse">
        <div class="container">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">Shop-app购物系统</a>
            </div>
            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                    <li class="active"><a href="#">首页 </a></li>
                    <li><a href="#">分页</a></li>
                    <li><a href="#">子选项</a></li>

                </ul>
                <ul class="nav navbar-nav navbar-right">
                    <li><a href="./html/register.html">登录</a></li>
                    <li><a href="./html/login.html">注册</a></li>
                </ul>
            </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
    </nav>
    <div>
        <div class="container">
            <button type="button" class="btn btn-primary btn-lg btn-add" data-toggle="modal" data-target="#addModal" >添加商品</button>

            <table class="table table-striped table-bordered table-condensed table-list btn-ok">
                <thead>
                    <tr>
                        <th>编号</th>
                        <th>商品名称</th>
                        <th>商品价格</th>
                        <th>商品数量</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody id="tbody">
                   

                </tbody>
            </table>
        </div>
    </div>

    <!-- Button trigger modal -->


    <!-- </button> -->

    <!-- Modal 模态框-->
    <div class="modal fade form-horizontal" id="addModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel">新增商品</h4>
                </div>
                <div class="modal-body">
                    <div class="form-group">
                        <label for="inputname" class="col-sm-2 control-label">商品名称</label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" id="inputname" placeholder="请填写要添加的商品名字">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="inputprice" class="col-sm-2 control-label">商品价格</label>
                        <div class="col-sm-8">
                            <input type="number" class="form-control" id="inputprice" placeholder="请填写商品的价格">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="inputnum" class="col-sm-2 control-label">商品数量</label>
                        <div class="col-sm-8">
                            <input type="number" class="form-control" id="inputnum" placeholder="请填写商品的数量">
                        </div>
                    </div>
                    <p class="text-center" id="add-info"></p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-primary" id="btn-add">确定</button>
                </div>
            </div>
        </div>
    </div>
    <script src="./js/select.js"></script>
    <script src="./js/add.js"></script>
    <script src="./js/del.js"></script>
    <script src="./js/update.js"></script>
</body>

</html>